package org.niit.controller

import org.apache.spark.streaming.dstream.DStream
import org.niit.bean.AdClickData
import org.niit.service.AreaCityAdService

/**
 * Date:2025/6/4
 * Author：Ys
 * Description:
 */
class AreaCityAdController {
    //BlackListController  应该起名是 UserAdController ,但凡是以用户角度对广告分析应该放到该Controller
  //  AreaCityAdController  是以区域 城市的角度对广告分析
    val areaCityAdService = new AreaCityAdService()
  def dispatch(data:DStream[AdClickData]): Unit = {
    //调用相应的Service模块
    areaCityAdService.dataAnalysis(data)
  }
}
